package com.kongjs.application.convert;

import com.kongjs.application.model.dto.QueryLoginLogDTO;
import com.kongjs.application.model.dto.QueryLoginParamDTO;
import com.kongjs.application.model.entity.LoginLog;
import com.kongjs.application.model.vo.QueryLoginLogVO;
import com.kongjs.application.model.vo.QueryLoginParamVO;
import com.kongjs.application.model.vo.QueryOperationLogParamVO;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;

import java.util.List;

@Mapper(componentModel = "spring",unmappedTargetPolicy = ReportingPolicy.IGNORE,unmappedSourcePolicy = ReportingPolicy.IGNORE)
public interface LoginLogConverter {
    List<QueryLoginLogVO> toVos(List<QueryLoginLogDTO> items);
    QueryLoginLogDTO toDto(LoginLog loginLog);
    QueryLoginParamDTO toDto(QueryLoginParamVO paramVO);
}
